
<?php	foreach ($dataProvider as $data): ?>
	             <li>
                    <a href="<?php echo Yii::app()->createUrl('work/view', array('id'=>$data->media_id));?>" class="project-item">
                        <img src="<?php echo File::model()->generateFilePath(File::model()->findByPk($data->media_pic_id),0); ?>" alt="" />
                        <div class="overlay">
                            <h5><?php echo $data->media_name;?></h5>
                            <p><?php echo $data->category->cate_name;?>
                                <br />
                                <?php echo $data->media_id;?>
                            </p>
                        </div>
                    </a>
                </li>
<?php endforeach;?>




